package com.wan.usercenter.pojo.entity;

import java.io.Serializable;
import java.util.Date;

public class BasicUserOnlineInfo implements Serializable {
    private Long id;

    private String modifier;

    private String creator;

    private Long companyId;

    private Long orgId;

    private Long userId;

    private String code;

    private String name;

    private String ip;

    private Date onlineTime;

    private Date offlineTime;

    private Date stopTime;

    private Byte status;

    private Long tenantId;

    private static final long serialVersionUID = 1L;

    public BasicUserOnlineInfo(Long id, String modifier, String creator, Long companyId, Long orgId, Long userId, String code, String name, String ip, Date onlineTime, Date offlineTime, Date stopTime, Byte status, Long tenantId) {
        this.id = id;
        this.modifier = modifier;
        this.creator = creator;
        this.companyId = companyId;
        this.orgId = orgId;
        this.userId = userId;
        this.code = code;
        this.name = name;
        this.ip = ip;
        this.onlineTime = onlineTime;
        this.offlineTime = offlineTime;
        this.stopTime = stopTime;
        this.status = status;
        this.tenantId = tenantId;
    }

    public BasicUserOnlineInfo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public Date getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(Date onlineTime) {
        this.onlineTime = onlineTime;
    }

    public Date getOfflineTime() {
        return offlineTime;
    }

    public void setOfflineTime(Date offlineTime) {
        this.offlineTime = offlineTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", modifier=").append(modifier);
        sb.append(", creator=").append(creator);
        sb.append(", companyId=").append(companyId);
        sb.append(", orgId=").append(orgId);
        sb.append(", userId=").append(userId);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", ip=").append(ip);
        sb.append(", onlineTime=").append(onlineTime);
        sb.append(", offlineTime=").append(offlineTime);
        sb.append(", stopTime=").append(stopTime);
        sb.append(", status=").append(status);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}